package com.wlb365.admin.modules.monitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.wlb365.admin.common.support.entity.BaseEntity;

import java.time.LocalDateTime;

/**
 * <p>
 * 异常监控信息
 * </p>
 *
 * @author
 * @since 2021-01-27 13:18:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("monitor_info_error")
public class MonitorInfoError extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 错误id,md5Hex(instanceId + routeId + errorMsg)
     */
    private String errorId;

    /**
     * 实例id
     */
    private String instanceId;

    /**
     * 路由ID
     */
    private String routeId;

    /**
     * 错误信息
     */
    private String errorMsg;

    /**
     * http status，非200错误
     */
    private Integer errorStatus;

    /**
     * 错误次数
     */
    private Integer count;

    /**
     *
     */
    private Integer isDeleted;

    /**
     *
     */
    private LocalDateTime gmtCreate;

    /**
     *
     */
    private LocalDateTime gmtModified;

}
